from rest_framework import serializers

from course.models import Course, Category, Label, Section, Jie, Attention, MyCourse


class CourseSerializers(serializers.ModelSerializer):
    class Meta:
        model = Course
        fields = "__all__"

class CategorySerializers(serializers.ModelSerializer):
    class Meta:
        model = Category
        fields = "__all__"


class LabelSerializers(serializers.ModelSerializer):
    class Meta:
        model = Label
        fields = "__all__"


class SectionSerializers(serializers.ModelSerializer):
    class Meta:
        model = Section
        fields = "__all__"


class JieSerializers(serializers.ModelSerializer):
    class Meta:
        model = Jie
        fields = "__all__"


class AttentionSerializers(serializers.ModelSerializer):
    class Meta:
        model = Attention
        fields = "__all__"


class MyCourseSerializers(serializers.ModelSerializer):
    class Meta:
        model = MyCourse
        fields = "__all__"